#include <vector>
#include <iostream>
#include <set>  
int main()
{
    std::vector<int> intVec;
    std::set<int> intSet;
    for (int i = 0; i < 10; i++)
    {
        intVec.push_back(i);
        intSet.insert(i);
    }
    for (std::vector<int>::iterator it = intVec.begin();
         it != intVec.end(); it++)
    {
        std::cout<<"vector容器的元素:"<<std::endl;
        std::cout << *it << std::endl;
    }
    for(std::set<int>::iterator it=intSet.begin();
    it!=intSet.end();it++){
        std::cout<<"set容器的元素:"<<std::endl;
        std::cout<<*it<<std::endl;
    }
}